{strip}{include file="bem/theme/functions.html"}{$is_ajax=waRequest::isXMLHttpRequest()}{if ($is_ajax)}{$content}{else} {$wa->title()|escape} {*шрифты*} {*компоненты*} {if (!empty($theme_settings.theme__color__ab))} {eval var=$theme_settings.theme__color__ab assign='ab'} {$theme_settings.theme__color=$ab} {/if} {$wa->css()} {fetch file="`$wa_active_theme_path`/users.css" assign='users_css'} {$wa->js()} {*пользовательские секция head, meta теги и т.д. *} {include file="head.html"} {* @event frontend_head.%plugin_id% *} {foreach $frontend_head as $_}{$_}{/foreach} {$wa->head()} {include file="header.html"} {include file="bem/preloader/block.html"}
{* @event frontend_header.%plugin_id% *} {foreach $frontend_header as $plugin_id => $_} {* Перехватыввем показ плагинов, которые будут отрисованны в теле страницы *} {if $plugin_id == 'cityselect-plugin'} {*Автоопределение и выбор города*} {capture name = "cityselect"}
{$_}
{/capture} {$content = $content|default:''|replace:'':$smarty.capture.cityselect} {else} {$_} {/if} {/foreach} {$content|default:''} {include file="bem/footer/block.html"} {if !empty($theme_settings.theme__wow)}{/if} {include file="footer.html"} {include file="bem/shop/cart/element/added.html"} {/if}{/strip}